HTML = {
	movie:{
		description:[
			'<div style="">',
				'<h1>{movie_title}</h1><br/>',
				'<div style="color:gray">{movie_author_name}</b></div><br/>',
				'<img style="float:left;padding-right:10px;" src="'+URL.base+'/upload/author_image_{author_id}"/>',
				//'<div style="float:left;width:300;height:150;">{movie_description}</div><br/><br/>',
				'<i>{movie_length} min.</i><br/>',
				'<b>{movie_language_name}</b><br/>',
			'</div>'
		],
		panel:[
			'<div style="float:left;padding:5px;">{movie_markup}</div>',
		
			'<div style="white-space:normal !important;">',	
				'<div style="text-align:left;">',
					'<div style="font-size:13px;font-weight:bold;color:#008000;">{movie_title}</div>',
					'<div style="float:right;color:gray;padding:10px;font-size:9px;text-align:center;">',
						'<img style="padding-bottom:3px;display:block;" src="'+URL.base+'/upload/author_image_{author_id}"/>',
						'{movie_author_name}',
					'</div>',
					//'<div style="float:left;width:300;height:150;">{movie_description}</div><br/><br/>',
					'<div style="padding:10px;"><i>{movie_length} min.</i>&nbsp;<b>{movie_language_name}</b></div>',
				'</div>',
				'<div style="padding:5px;font-size:9px;text-align:justify">{movie_description}</div>',
				'<div style="white-space:normal;padding:5px;font-size:9px;color:red">{dilema_point_movie_comment}</div>',
			'</div>'
			
		],
		google:
			'<embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid={0}' +
			'&hl=pl&fs=true style=width:300px;height:244px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed>'
		,
		youtube:
		 	'<iframe width="200" height="233" src="http://www.youtube.com/embed/{0}?rel=0" frameborder="0" allowfullscreen></iframe>',
		_google:function(width,h){
			if(!h){
				switch (width){
					case 100: h = 82;break;// 81 ?
					case 150: h = 122;break;
					case 200: h = 163;break;
					case 300: h = 244;break;
					case 400: h = 326;break;
				}
			}
			
			return '<embed id=VideoPlayback src=http://video.google.com/googleplayer.swf?docid={0}' +
			'&hl=pl&fs=true style=width:'+width+'px;height:'+h+'px allowFullScreen=true allowScriptAccess=always type=application/x-shockwave-flash> </embed>'
		},
		_youtube:function(width,h){
			if(!h){
				switch (width){
					case 100: h = 97;break;
					case 150: h = 131;break;
					case 200: h = 165;break;
					case 300: h = 233;break;
				}
			}
			
		 	return '<iframe width="'+width+'" height="'+h+'" src="http://www.youtube.com/embed/{0}?rel=0" frameborder="0" allowfullscreen></iframe>'
		}
	},
	userHello:[
		'<div style="padding:20px;font-size:12px;text-align:center;margin:0px;">',
			//color:white; background-color:black;
			'<span style="font-weight:bold;">Witaj {user_name} {role_name}</span><br/>',
			'<div style="padding:10;margin:0 20%"> {message} </div><br/>',
			'<img src="'+URL.base+'/img/bible_logo.png"/><br/>',
		'</div>'
	],
	hiddenLogin:
        '<form id="login" method="post" action="login.html" target="IFRAME_login" style="top:-100px;position:absolute">'+
			'<input type="text" id="sweet_login" name="login"/>'+
   			'<input type="password" id="sweet_pass" name="password" autocomplete="on"/>'+
   			'<input type="submit" id="submit" value="Login" class="x-hidden" />'+
   		'</form>'+
   		'<iframe style="display:none" frameborder="0" id="IFRAME_login" name="IFRAME_login"></iframe>'
   	,
   	tsHeader:
   		'<div style="position:absolute;width:100%;height:70px;background:url(/img/ts_bg_lite.png) repeat-x 0 0 !important;">'+
			'<img src="/img/ts_logo_lite.png" style="float:left"/>'+
		'</div>'
   	,
	groupView:{
		normal: '{text}'
	},
	iframe:'<iframe frameborder="0" name="{0}" id="{0}" width="100%" height="100%"></iframe>',
	dropDown:{
		unselectables:[
			'<tpl for=".">',
				'<tpl if="type == 1">',
					'<div disabled class="x-combo-list-item x-boundlist-item x-unselectable"><b>{status}</b></div>',
				'</tpl>',
				'<tpl if="type == 2">',
					'<div class="x-combo-list-item x-boundlist-item">{status}</div>',
				'</tpl>',
			'</tpl>'
		],
		activeSensitive: '<tpl for=".">' +
			'<tpl if="active == 0">' +
				'<div disabled="disabled" class="x-combo-list-item x-boundlist-item x-unselectable" style="display:none !important;" disabled>{name}</div>' +
			'</tpl>' +
			'<tpl if="active == 1">' +
				'<div class="x-combo-list-item x-boundlist-item">{name}</div>' +
			'</tpl>' +
		'</tpl>',
		sensitiveSome:function(field){
			return '<tpl for=".">' +
				'<tpl if="'+field+' == 0">' +
					'<div class="x-combo-list-item" style="display:none;">{name}</div>' +
				'</tpl>' +
				'<tpl if="'+field+' == 1">' +
					'<div class="x-combo-list-item">{name}</div>' +
				'</tpl>' +
			'</tpl>';
		}
	},
	icon: '<a style=cursor:pointer onclick={0}("{1}","{2}");><img ext:qtip="{4}" src='+URL.base+'/img/icons/{3}></a>',
	icon2: '<a style=cursor:pointer onclick="{0}" ><img ext:qtip="{2}" src="'+URL.base+'/img/icons/{1}" ></a>',
	deleteIcon:'<img src="'+URL.base+'/img/icons/delete.gif" ext:qtip="Usuń"/>',
	img:'<img src="{0}"/>',
	grid_empty:'<div style="color:gray;padding:10px;padding-top:7px;font-size:10">brak wyników<div>',
	loadingMask:
        '<div id="loading-mask"></div>'+
		'<div id="loading">'+
			'<div></div>'+
			'<span>Ładowanie...</span>'+
		'</div>'
	,
	tpl:{
		tool:{
			create:[
				'<div class="my-tool">',
		        	'<div class="my-tool-right">&nbsp;</div>',
		        	'<div {qtip} class="my-tool-bg" {id}>{text}</div>',
		        	'<div class="my-tool-left">&nbsp;</div>',
		        '</div>'
		    ]
		}
	},
   logout:
		'<div id="P_logout" class="LoggedUserPane">' +
			'<div class="LoggedUserRight"></div>' +
			'<div class="LoggedUserBody">' + 
				'<span class="LoggedLink" ext:qtip="Zakończ sesję i opuść system." onclick=APP.session.logout()>wyloguj</span>'+
			'</div>' +
			'<div class="LoggedUserLeft"></div>' +
		'</div>'
}